package com.shiwaixiangcun.customer.module.heath;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.shiwaixiangcun.customer.R;

import java.util.List;

/**
 * Author   Administrator
 * Date     2018/1/23
 * Desc     eg
 *
 * @author Administrator
 */

public class AdapterHealthDynamic extends BaseQuickAdapter<HealthDynamicData, BaseViewHolder> {
    public AdapterHealthDynamic(@Nullable List<HealthDynamicData> data) {

        super(R.layout.item_health_dynamic, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, HealthDynamicData item) {
        helper.setText(R.id.tv_time, item.getServiceDate());
        helper.setText(R.id.tv_content, item.getServiceData());
        helper.setText(R.id.tv_type, item.getServiceType());

    }
}
